package com.gd.deron.smartrobot.baobao.utils;


import android.content.IntentFilter;

public class Config {
	

	/**连接断开*/
	public static final String DISCONNECTED = "disconnected";
	/**搜索设备连接中*/
	public static final String FIND_DEVICE_CONNECTING = "find_connecting";
	/**连接成功*/
	public static final String CON_SUCCESS = "success";
	/**手动断开连接*/
	public static final String SHOUDONG_DUANKAI = "shoudong_duankai";
	/**找到设备*/
	public static final String FIND_DEVICE = "find_device";
	/**发送成功*/
	public static final String SEND_SUCC = "send_succ";
	public static final String CURRENT_ADDRESS = "current_address";
	public static final String ASR_RESULT = "asr_result";
	public static final String ASR_ERROR = "asr_error";
	public static final String ASR_VOLUME = "asr_volume";
	public static final String START_ASR = "start_asr";
	public static final String STOP_ASR = "stop_asr";
	public static final String ASR_ANSWER = "asr_answer";
	public static final String START_ASR_COPY = "start_asr_copy";
	public static final String STOP_ASR_COPY = "stop_asr_copy";
	public static final String SUBMIT_QUESTION_ANSWER = "submit_question_answer";
	public static final String CLEAR_ARS_SQL = "clear_asr_sql";
	public static final String WAKE_ROBOT_OFFLINE = "wake_robot_offline";
	public static final String WAKE_ROBOT_ONLINE = "wake_robot_online";
	public static final String PLAY_TTS = "play_tts";
	public static final String VOICE = "voice";
	public static final String TOUCH_DOWN = "touch_down";
	public static final String TOUCH_UP = "touch_up";
	public static final String AIJIA_XINGXING = "aijia_xingxing";
	public static final String AIJIA_HELLO = "aijia_hello";
	public static final String AIJIA_NIHAO = "aijia_nihao";
	public static final String RECEIVE_DATA = "receiver_data";
	public static final String WIFICONNECT_SUCCESSFUL = "wificonnect_successful";
	public static final String WIFICONNECT_FAILED = "wificonnect_failed";
	
	
	/**获取广播过滤器*/
	public static IntentFilter getfilter(){
		IntentFilter filter = new IntentFilter();
		filter.addAction(Config.DISCONNECTED);
		filter.addAction(Config.CON_SUCCESS);
		filter.addAction(Config.SHOUDONG_DUANKAI);
		filter.addAction(Config.FIND_DEVICE);
		filter.addAction(Config.FIND_DEVICE_CONNECTING);
		filter.addAction(Config.SEND_SUCC);
		filter.addAction(Config.CURRENT_ADDRESS);
		filter.addAction(Config.ASR_RESULT);
		filter.addAction(Config.ASR_ERROR);
		filter.addAction(Config.ASR_VOLUME);
		filter.addAction(Config.START_ASR);
		filter.addAction(Config.STOP_ASR);
		filter.addAction(Config.ASR_ANSWER);
		filter.addAction(Config.START_ASR_COPY);
		filter.addAction(Config.STOP_ASR_COPY);
		filter.addAction(Config.SUBMIT_QUESTION_ANSWER);
		filter.addAction(Config.CLEAR_ARS_SQL);
		filter.addAction(Config.WAKE_ROBOT_OFFLINE);
		filter.addAction(Config.WAKE_ROBOT_ONLINE);
		filter.addAction(Config.VOICE);
		filter.addAction(Config.TOUCH_DOWN);
		filter.addAction(Config.TOUCH_UP);
		filter.addAction(Config.AIJIA_XINGXING);
		filter.addAction(Config.AIJIA_HELLO);
		filter.addAction(Config.AIJIA_NIHAO);
		filter.addAction(Config.RECEIVE_DATA);
		filter.addAction(Config.WIFICONNECT_SUCCESSFUL);
		filter.addAction(Config.WIFICONNECT_FAILED);
		return filter;
	}
}
